package com.cn.controller;

import com.cn.pojo.Parking;
import com.cn.service.Parkingservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@Controller
public class Parkingcontroller {

    @Autowired
    private Parkingservice ps;


    @RequestMapping("pshow")
    public String  pshow(Parking pp, Model mo){
        List<Map> showp = ps.showp(pp);
        mo.addAttribute("list", showp);


        return "" ;


    }




}
